/*
 * (C) 2005 National Australia Bank
 *
 * [All rights reserved]. This product and related documentation are protected
 * by copyright restricting its use, copying, distribution, and decompilation.
 * No part of this product or related documentation may be reproduced in any
 * form by any means without prior written authorization of
 * National Australia Bank. Unless otherwise arranged, third parties may not
 * have access to this product or related documents.
 */
package au.com.evoCoach.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import au.com.evoCoach.dao.PlayerDAO;
import au.com.evoCoach.domain.Player;

@Service
public class PlayerService {
	private PlayerDAO playerDAO;

	@Autowired
	public PlayerService(PlayerDAO playerDAO) {
		this.playerDAO = playerDAO;
	}

	public List <Player> getAllPlayers() {
		List<Player> allPlayers = playerDAO.getAllPlayers();
		return allPlayers;
	}
}
